package y23.Oct;


import java.util.Scanner;
//密码强度判断
public class Test13 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int sum = score(scanner.nextLine());
        if(sum >= 90){
            System.out.println("VERY_SECURE");
        }else if(sum>=80){
            System.out.println("SECURE");
        }else if(sum>=70){
            System.out.println("VERY_STRONG");
        }else if(sum>=60){
            System.out.println("STRONG");
        }else if(sum>=50){
            System.out.println("AVERAGE");
        }else if(sum>=25){
            System.out.println("WEAK");
        }else if(sum>=0){
            System.out.println("VERY_WEAK");
        }

    }
    public static int score(String password){
        int sum = 0;
        sum+=len(password);
        return sum;
    }
    public static int len(String password){
        if(password.length()<=4){
            return 5;
        } else if (password.length()<8) {
            return 10;
        }else {
            return 25;
        }
    }
    public static int ch(String password){
        int A = 0;//大写字母：65~90
        int a = 0;//小写字母：97~122
        int num = 0;//数字：48~57
        int c = 0;//其他字符
        int score = 0;
        int S = 0;
        for (int i = 0; i < password.length(); i++) {
            char symbol = password.charAt(i);
            if(symbol>=65&&symbol<=90){
                A++;
            } else if (symbol>=97&&symbol<=122) {
                a++;
            } else if (symbol>=48&&symbol<=57) {
                num++;
            }else {
                c++;
            }
        }
        if(num == 1){
            score+=10;
            S++;
        } else if (num>1) {
            score+=20;
            S++;
        }
        if(c == 1){
            score+=10;
            S++;
        } else if (c>1) {
            score+=25;
            S++;
        }
        if(A!=0&&a!=0){
            score+=grade(20,S);
        } else if (A!=0||a!=0) {
            score+=grade(10,S);
        }
        return score;
    }
    public static int grade(int score,int S){
        if(S==2){
            if (score==20){
                return 25;
            }else {
                return 13;
            }
        }else if(S==1){
            return score+2;
        }
        return score;
    }
}
